/*
** my_strcapitalize.c for my_strcapitalize in /home/labonn_c//Documents/piscine/Jour_O6
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Mon Oct 10 19:29:11 2011 christophe labonnemartinez
** Last update Mon Oct 10 21:23:38 2011 christophe labonnemartinez
*/

char	*my_strcapitalize(char *str)
{
  int	i;
  int	j;

  i = 0;
  j = 0;
  str[0] = str[0] - 32;
  while (str[i] != '\0')
    {
      j = i + 1;
      if (str[i] == ' ')
	str[j] = str[j] - 32;
      else if (str[i] == '-')
	str[j] = str[j] - 32;
      else if (str[i] == '+')
	str[j] = str[j] - 32;
      i = i + 1;
    }
  return (str);
}
